<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>Martini | geo-three</title>
	<meta name="description" content="Documentation for geo-three">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">geo-three</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../modules.html">geo-three</a>
				</li>
				<li>
					<a href="../modules/nodes_Martini.html">nodes/Martini</a>
				</li>
				<li>
					<a href="nodes_Martini.Martini.html">Martini</a>
				</li>
			</ul>
			<h1>Class Martini</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p>Martini mesh tile generator (Mapbox&#39;s Awesome Right-Triangulated Irregular Networks, Improved).</p>
					</div>
					<p>Represents a height map tile node using the RTIN method from the paper &quot;Right Triangulated Irregular Networks&quot;.</p>
					<p>Based off the library <a href="https://github.com/mapbox/martini">https://github.com/mapbox/martini</a>.</p>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">Martini</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Constructors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="nodes_Martini.Martini.html#constructor" class="tsd-kind-icon">constructor</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="nodes_Martini.Martini.html#coords" class="tsd-kind-icon">coords</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="nodes_Martini.Martini.html#gridSize" class="tsd-kind-icon">grid<wbr>Size</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="nodes_Martini.Martini.html#indices" class="tsd-kind-icon">indices</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="nodes_Martini.Martini.html#numParentTriangles" class="tsd-kind-icon">num<wbr>Parent<wbr>Triangles</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="nodes_Martini.Martini.html#numTriangles" class="tsd-kind-icon">num<wbr>Triangles</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="nodes_Martini.Martini.html#createTile" class="tsd-kind-icon">create<wbr>Tile</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Constructors</h2>
				<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
					<a name="constructor" class="tsd-anchor"></a>
					<h3>constructor</h3>
					<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">new <wbr>Martini<span class="tsd-signature-symbol">(</span>gridSize<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="nodes_Martini.Martini.html" class="tsd-signature-type" data-tsd-kind="Class">Martini</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/tentone/geo-three/blob/bbd604d/source/nodes/Martini.ts#L41">source/nodes/Martini.ts:41</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Constructor for the generator.</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>gridSize: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 257</span></h5>
									<div class="tsd-comment tsd-typography">
										<div class="lead">
											<p>Size of the grid.</p>
										</div>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="nodes_Martini.Martini.html" class="tsd-signature-type" data-tsd-kind="Class">Martini</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="coords" class="tsd-anchor"></a>
					<h3>coords</h3>
					<div class="tsd-signature tsd-kind-icon">coords<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Uint16Array</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/tentone/geo-three/blob/bbd604d/source/nodes/Martini.ts#L34">source/nodes/Martini.ts:34</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Coordinates of the points composing the mesh.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="gridSize" class="tsd-anchor"></a>
					<h3>grid<wbr>Size</h3>
					<div class="tsd-signature tsd-kind-icon">grid<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/tentone/geo-three/blob/bbd604d/source/nodes/Martini.ts#L14">source/nodes/Martini.ts:14</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Size of the grid to be generated.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="indices" class="tsd-anchor"></a>
					<h3>indices</h3>
					<div class="tsd-signature tsd-kind-icon">indices<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Uint32Array</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/tentone/geo-three/blob/bbd604d/source/nodes/Martini.ts#L29">source/nodes/Martini.ts:29</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Indices of the triangles faces.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="numParentTriangles" class="tsd-anchor"></a>
					<h3>num<wbr>Parent<wbr>Triangles</h3>
					<div class="tsd-signature tsd-kind-icon">num<wbr>Parent<wbr>Triangles<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/tentone/geo-three/blob/bbd604d/source/nodes/Martini.ts#L24">source/nodes/Martini.ts:24</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Number of triangles in the parent node.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="numTriangles" class="tsd-anchor"></a>
					<h3>num<wbr>Triangles</h3>
					<div class="tsd-signature tsd-kind-icon">num<wbr>Triangles<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/tentone/geo-three/blob/bbd604d/source/nodes/Martini.ts#L19">source/nodes/Martini.ts:19</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Number of triangles to be used in the tile.</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="createTile" class="tsd-anchor"></a>
					<h3>create<wbr>Tile</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Tile<span class="tsd-signature-symbol">(</span>terrain<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Tile</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/tentone/geo-three/blob/bbd604d/source/nodes/Martini.ts#L97">source/nodes/Martini.ts:97</a></li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>terrain: <span class="tsd-signature-type">any</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Tile</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class=" ">
						<a href="../modules.html">Modules</a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/nodes_Martini.html">nodes/<wbr>Martini</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class tsd-parent-kind-module">
						<a href="nodes_Martini.Martini.html" class="tsd-kind-icon">Martini</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class">
								<a href="nodes_Martini.Martini.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="nodes_Martini.Martini.html#coords" class="tsd-kind-icon">coords</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="nodes_Martini.Martini.html#gridSize" class="tsd-kind-icon">grid<wbr>Size</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="nodes_Martini.Martini.html#indices" class="tsd-kind-icon">indices</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="nodes_Martini.Martini.html#numParentTriangles" class="tsd-kind-icon">num<wbr>Parent<wbr>Triangles</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="nodes_Martini.Martini.html#numTriangles" class="tsd-kind-icon">num<wbr>Triangles</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="nodes_Martini.Martini.html#createTile" class="tsd-kind-icon">create<wbr>Tile</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>